package com.example.Words.room.model;

import androidx.lifecycle.LiveData;

import com.example.Words.room.model.entity.Word;

import java.util.List;

/**
 * <pre>
 *  author:huletian
 *  time    :2020/2/22
 *  desc    :模型层接口，包含插入、删除还有查询所有数据操作函数
 *  version:1.0
 * </pre>
 */
public interface RoomModeIIntf {
 void insertDate(Word... words);
 LiveData<List<Word>> getAllWordsLive() ;
 void update(Word... words);
 void clearDate();
 LiveData<List<Word>> findWordsWithPatten(String patten);
 void deleteData(Word... words);
}
